<?php 
/**
 *   Joomdiet - components/views/reciperesult/tmpl/default.php
 *   Author: Juan Dapena Paz (juan@bittingbits.com)
 *   Copyright (C) 2010 Bitting Bits S.L.
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
defined('_JEXEC') or die('Restricted access'); ?>
<div id="joomdiet_container">
<form id="form1" method="post" action="<?php echo JRoute::_('index.php?option=com_joomdiet'); ?>">
<div id="mainpane">
    <div id="resultpane">
        <?php $i = 0; ?>
        <h2><?php echo JText::_('COM_JOOMDIET_RESULTS'); ?></h2>
        <br />
        <div class="tablepane">
        <table width="100%" class="joomdiettable">
            <?php foreach ($this->recipes as $recipe) { ?>
            <tr class="tablerow row<?php echo $i; ?>" id="foodrow<?php echo $recipe->id; ?>">
                <td width="80%">
                    <?php echo $recipe->name; ?>
                </td>
                <td>
                </td>
            </tr>
            <?php $i = 1 - $i; } ?>
        </table>
        </div>
    </div>
    <div id="infopane">
        <h2><?php echo JText::_('COM_JOOMDIET_SELECTED_INFO'); ?></h2>
        <a href="javascript: void(0);" id="ingredientslink"><?php echo JText::_('COM_JOOMDIET_INGREDIENTS'); ?></a> |
        <a href="javascript: void(0);" id="nutrientslink"><?php echo JText::_('COM_JOOMDIET_NUTRIENTS'); ?></a>
        <div class="tablepane"><div id="infotable">
        
        </div></div>
        <div width="100%" align="center">
            <input type="button" name="toamountform" id="toamountform" value="<?php echo JText::_('COM_JOOMDIET_TO_AMOUNT_FORM'); ?>" />
        </div>
    </div>
</div>
<div class="float">
</div>

<input name="format" type="hidden" id="format" value="raw" />
<!--<input name="view" type="hidden" id="view" value="foodinfotable" />-->
<input name="controller" type="hidden" id="controller" value="recipesearch" />
<input name="task" type="hidden" id="task" value="loadinfotable" />
<input name="cid" type="hidden" id="cid" value="0" />
<input name="infotype" type="hidden" id="infotype" value="1" />
<input name="amountvalue" type="hidden" id="amountvalue" value="1">

</form>
</div>
